# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from django.conf import settings
from json_events.views import EventsBridge, game
from os import path

static_path = path.dirname(path.abspath(__file__))+'/static/'

urlpatterns = patterns('',
    url(r'get_client_events', EventsBridge.get_client_events, name='get_client_events'),
    url(r'trigger_server_event', EventsBridge.trigger_server_event, name='trigger_server_event'),
    url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': static_path}),
    url(r'', game, name='index')
)